﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MyHealthByDesignWebsite.Models.LogOnModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Join My Health !
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   
<table style ="border: solid 3px white"><tr>
    <td style ="border: solid 3px white" >
    <h2 style="text-align :left;">Logon</h2>
    <% using (Html.BeginForm()) 
       { %>
        <%: Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.") %>
                                       
               <p>
                    <%: Html.LabelFor(m => m.UserName) %>
                    <br />
                    <%: Html.TextBoxFor(m => m.UserName) %>
                    <%: Html.ValidationMessageFor(m => m.UserName) %>
                <br />
                    <%: Html.LabelFor(m => m.Password) %><br />
                    <%: Html.PasswordFor(m => m.Password) %>
                    <%: Html.ValidationMessageFor(m => m.Password) %><br />
                    <%: Html.CheckBoxFor(m => m.RememberMe) %>
                    <%: Html.LabelFor(m => m.RememberMe) %>               
                </p> 
                <p>
                    <input type="submit" value="Log On" />
                </p>
                <p>
                <%: Html.ActionLink("Forgot Password?", "ForgotPassword","Account") %> 
                </p>        
    <% } %>
   
    </td><td style ="border: solid 3px white">
    <p>
        <asp:Image ID="Image1" runat="server" Height="305px" 
            ImageUrl="~/Content/Images/HealthFitness.jpg" Width="432px" />
    </p></td>
    <td style ="border: solid 3px white">
    <h2>Mission Statement</h2>
    <p>
      My Health By Design was created to be a comprehensive and integrated wellness
 website that is easy to use and practical, providing innovative programs and educational
 materials on health, diet and fitness.
    </p>


    <% using (Html.BeginForm()) { %>
     <p style ="text-align:center">
                <%: Html.ActionLink("Join Today", "Register","Account") %> 
     </p>
    <% } %></td>
    </tr>
    </table>
</asp:Content>
